package com.groupbuying.cheetah.common;

public class CommonConstants {
    /**
     * Jwt信息
     */
    public final static String CONTEXT_TOKEN = "Authorization";
    public final static String CONTEXT_USERNAME = "contextUsername";
    public final static String CONTEXT_USER_ID = "contextUserId";
    public final static String CONTEXT_NAME = "contextName";
    public final static String JWT_PRIVATE_KEY = "ywxd";
    public final static String RENEWAL_TIME = "renewalTime";
    public final static String TOKEN = "token";

    /**
     * 删除状态，1表示未删除
     */
    public static final String COMMON_FLAG_UNDEL = "1";
    /**
     * 删除状态，0表示删除
     */
    public static final String COMMON_FLAG_DEL = "0";

    /**
     * 启用状态，1表示正常使用
     */
    public static final String COMMON_STATE_UES = "1";

    /**
     * 启用状态，0表示未启用
     */
    public static final String COMMON_STATE_UNUES = "0";

    /**
     * 用户token过期时间，天
     */
    public static final Long COMMON_TOKEN_DAY = new Long(30);
    /**
     *订单过期时间  毫秒
     */
    public static final Long ORDER_OVERDUE = new Long(30*60*1000);

    /**
     * 主动操作
     */
    public static final String USER_OPERATION = "user_operation";
    /**
     * 被动操作
     */
    public static final String AUTO_OPERATION = "auto_operation";
}